package cloud.maque.auth.service;

import cloud.maque.auth.entity.AuthUser;
import cloud.maque.auth.entity.AuthUserThrid;

public interface UserThridService {

    /**
     * 根据第三方类型和ID 查询用户
     *
     * @param thridType
     * @param thridUserId
     * @return
     */
    AuthUserThrid findThridByUser(String thridType, String thridUserId);

    AuthUser findByUser(String thridType, String thridUserId);

    /**
     * 创建第三方数据
     *
     * @param authUserThrid
     * @return
     */
    AuthUserThrid SaveThrid(AuthUserThrid authUserThrid);
}
